package com.catal.framework.query;

import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

/**
 * 数据字典(未完成)
 * @author chensr
 *
 */
public class DataDictService extends JdbcDaoSupport{
	protected static Log log = LogFactory.getLog(DataDictService.class);
	
	private String sql;
	
	public List<Map<String,Object>> query(String dictName){
		List<Map<String,Object>> list = this.getJdbcTemplate().queryForList(sql,dictName);
		return list;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}
}
